﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Warhammer40K_Simulator.model
{
    public class army : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        public String Name
        {
            get;
            set;
        }

        private ObservableCollection<unit> units = new ObservableCollection<unit>();
        public ObservableCollection<unit> Units
        {
            get
            {
                return units;
            }
            set
            {
                units = value;
                NotifyPropertyChanged("Units");
            }
        }
    }
}
